package me.zhengjie.modules.repository.enterprise;

import me.zhengjie.modules.domain.enterprise.EnterpriseShareholders;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface EnterpriseShaMapper {

    /**
     * 批量添加企业股东信息
     * @param list
     * @return
     */
    int insertEnterpriseShaByList(List<EnterpriseShareholders> list);

    /**
     * 自动添加企业股东信息
     * @param list
     * @return
     */
    int AutoInsertEnterpriseShaByList(List<EnterpriseShareholders> list);

    /**
     * 根据企业id查询股东信息
     * @param name
     * @return
     */
    List<EnterpriseShareholders> selectEnterpriseShaByName(String name);
}
